<?php $this->_extends('_layouts/blank1_layout'); ?>

<?php $this->_block('title'); ?> - 下属主机<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started" alt="系统日志 > 主机组 > 主机">
	    <table id="table" class="sortable">
			<thead><tr><th width="5">　</th><th><h3>主机名</h3></th><th><h3>主机IP</h3></th><th><h3>主机组</h3></th><th width="45"><h3>日志数</h3></th></tr></thead><tbody>
			<?php foreach ($group as $s): ?>
			<tr class="<?php if(($countno+1)/2==ceil(($countno+1)/2)){echo 'tw';} ?>"><td align="center"><?php echo $countno++;?></td><td><a href="<?php echo url('default::systemlog/index', array('mac' => $s->macaddress,'startd' => $startd,'endd' => $endd)); ?>" target="_blank"><?php echo $s->hostname;?></a></td><td><?php echo $s->ipaddr.' - ['.$s->macaddress.']';?></td><td><?php echo $gpname;?></td><td><?php if(isset($hostc[$s->macaddress]['alarms']))echo $hostc[$s->macaddress]['actcounts'];else echo '0';  ?></td></tr>
			<?php endforeach; ?></tbody>
			<tfoot><tr class="tw">
				<td colspan="7"><input type="hidden" value="" id="startd"/><input type="hidden" value="" id="endd"/><input type="hidden" value="<?php echo $gid;?>" id="ids"/>
					<center>共<span id="pagelimit"></span>页 <span alt="第一页" onclick="sorter.move(-1,true)">第一页</span><span alt="上一页" onclick="sorter.move(-1)">上一页</span> 当前第<span id="currentpage"></span>页 <span alt="下一页" onclick="sorter.move(1)">下一页</span><span alt="最后一页" onclick="sorter.move(1,true)">最后一页 <select onchange="sorter.size(this.value)">
			<option value="5">5</option>
				<option value="10" selected="selected">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select></span></center>
				</td>
			</tr></tfoot>
		</table>
	</div>

<?php $this->_endblock('contents'); ?>